﻿<?php echo $header; ?>


	<?php if ($success) { ?>
  <div class="success"><?php echo $success; ?></div>
  <?php } ?>
  
  	<?php if ($warning) { ?>
  <div class="warning"><?php echo $warning; ?></div>
  <?php } ?>

	
	<?php if(isset($messages)){?>
	<div id="message">
			<table >
	<?php	foreach($messages as $message){
			?>
			<tr>
			<div class="box" >
				<div class="box-heading"><?php echo $message['nickname']; ?>(在<?php echo $message['date_added']; ?>)说：</div>
				<div class="box-content"><textarea disabled="disabled" readonly="readonly" cols="70"><?php echo $message['message']; ?></textarea></div>
			</div>
			</tr>
			<?php
		}?>
			</table></div>
	<?php
	}?>
		
<?php echo $footer; ?>
